]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Also replace full-width colon
authorKolja Lampe <klampe@slashwhy.de>
Fri, 20 Jan 2023 07:51:46 +0000 (08:51 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 13 Feb 2023 20:32:21 +0000 (20:32 +0000)
It is used instead of the regular colon in some locales, for
example Chinese.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5716

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2598>

js/gdm/authPrompt.js

index e48e422fa72d0af531ab993d77b4a3e88e965944..3cda93a4f5281246439734979b4d471913593e02 100644 (file)
@@ -309,7 +309,7 @@ var AuthPrompt = GObject.registerClass({
         if (question === 'Password:' || question === 'Password: ')
             this.setQuestion(_('Password'));
         else
-            this.setQuestion(question.replace(/: *$/, '').trim());
+            this.setQuestion(question.replace(/[::] *$/, '').trim());
 
         this.updateSensitivity(true);
         this.emit('prompted');